// import { ElNotification } from "element-plus";

const successMsg = (success: Boolean, message: string, callback?) => {
  if (success) {
    ElNotification({
      title: message,
      type: "success",
    });
    callback && callback();
  } else {
    ElNotification({
      title: message,
      type: "error",
    });
  }
};

export default successMsg;
